↳ Prolog
↳ PrologToPiTRSProof
avg_in(0, s(s(0)), s(0)) → avg_out(0, s(s(0)), s(0))
avg_in(0, s(0), 0) → avg_out(0, s(0), 0)
avg_in(0, 0, 0) → avg_out(0, 0, 0)
avg_in(X, s(s(s(Y))), s(Z)) → U2(X, Y, Z, avg_in(s(X), Y, Z))
avg_in(s(X), Y, Z) → U1(X, Y, Z, avg_in(X, s(Y), Z))
U1(X, Y, Z, avg_out(X, s(Y), Z)) → avg_out(s(X), Y, Z)
U2(X, Y, Z, avg_out(s(X), Y, Z)) → avg_out(X, s(s(s(Y))), s(Z))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
avg_in(0, s(s(0)), s(0)) → avg_out(0, s(s(0)), s(0))
avg_in(0, s(0), 0) → avg_out(0, s(0), 0)
avg_in(0, 0, 0) → avg_out(0, 0, 0)
avg_in(X, s(s(s(Y))), s(Z)) → U2(X, Y, Z, avg_in(s(X), Y, Z))
avg_in(s(X), Y, Z) → U1(X, Y, Z, avg_in(X, s(Y), Z))
U1(X, Y, Z, avg_out(X, s(Y), Z)) → avg_out(s(X), Y, Z)
U2(X, Y, Z, avg_out(s(X), Y, Z)) → avg_out(X, s(s(s(Y))), s(Z))
AVG_IN(X, s(s(s(Y))), s(Z)) → U21(X, Y, Z, avg_in(s(X), Y, Z))
AVG_IN(X, s(s(s(Y))), s(Z)) → AVG_IN(s(X), Y, Z)
AVG_IN(s(X), Y, Z) → U11(X, Y, Z, avg_in(X, s(Y), Z))
AVG_IN(s(X), Y, Z) → AVG_IN(X, s(Y), Z)
avg_in(0, s(s(0)), s(0)) → avg_out(0, s(s(0)), s(0))
avg_in(0, s(0), 0) → avg_out(0, s(0), 0)
avg_in(0, 0, 0) → avg_out(0, 0, 0)
avg_in(X, s(s(s(Y))), s(Z)) → U2(X, Y, Z, avg_in(s(X), Y, Z))
avg_in(s(X), Y, Z) → U1(X, Y, Z, avg_in(X, s(Y), Z))
U1(X, Y, Z, avg_out(X, s(Y), Z)) → avg_out(s(X), Y, Z)
U2(X, Y, Z, avg_out(s(X), Y, Z)) → avg_out(X, s(s(s(Y))), s(Z))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
AVG_IN(X, s(s(s(Y))), s(Z)) → U21(X, Y, Z, avg_in(s(X), Y, Z))
AVG_IN(X, s(s(s(Y))), s(Z)) → AVG_IN(s(X), Y, Z)
AVG_IN(s(X), Y, Z) → U11(X, Y, Z, avg_in(X, s(Y), Z))
AVG_IN(s(X), Y, Z) → AVG_IN(X, s(Y), Z)
avg_in(0, s(s(0)), s(0)) → avg_out(0, s(s(0)), s(0))
avg_in(0, s(0), 0) → avg_out(0, s(0), 0)
avg_in(0, 0, 0) → avg_out(0, 0, 0)
avg_in(X, s(s(s(Y))), s(Z)) → U2(X, Y, Z, avg_in(s(X), Y, Z))
avg_in(s(X), Y, Z) → U1(X, Y, Z, avg_in(X, s(Y), Z))
U1(X, Y, Z, avg_out(X, s(Y), Z)) → avg_out(s(X), Y, Z)
U2(X, Y, Z, avg_out(s(X), Y, Z)) → avg_out(X, s(s(s(Y))), s(Z))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
AVG_IN(s(X), Y, Z) → AVG_IN(X, s(Y), Z)
AVG_IN(X, s(s(s(Y))), s(Z)) → AVG_IN(s(X), Y, Z)
avg_in(0, s(s(0)), s(0)) → avg_out(0, s(s(0)), s(0))
avg_in(0, s(0), 0) → avg_out(0, s(0), 0)
avg_in(0, 0, 0) → avg_out(0, 0, 0)
avg_in(X, s(s(s(Y))), s(Z)) → U2(X, Y, Z, avg_in(s(X), Y, Z))
avg_in(s(X), Y, Z) → U1(X, Y, Z, avg_in(X, s(Y), Z))
U1(X, Y, Z, avg_out(X, s(Y), Z)) → avg_out(s(X), Y, Z)
U2(X, Y, Z, avg_out(s(X), Y, Z)) → avg_out(X, s(s(s(Y))), s(Z))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
AVG_IN(s(X), Y, Z) → AVG_IN(X, s(Y), Z)
AVG_IN(X, s(s(s(Y))), s(Z)) → AVG_IN(s(X), Y, Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
AVG_IN(X, s(s(s(Y)))) → AVG_IN(s(X), Y)
AVG_IN(s(X), Y) → AVG_IN(X, s(Y))
AVG_IN(X, s(s(s(Y)))) → AVG_IN(s(X), Y)
POL(AVG_IN(x1, x2)) = 2·x1 + 2·x2
POL(s(x1)) = 2 + x1
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ QDPSizeChangeProof
AVG_IN(s(X), Y) → AVG_IN(X, s(Y))
From the DPs we obtained the following set of size-change graphs: